Skip to content

feat(iOS): add modal detents prop - #54273

Open
okwasniewski wants to merge 2 commits into
react:mainfrom
okwasniewski:feat/modal-detents
Open

feat(iOS): add modal detents prop#54273
okwasniewski wants to merge 2 commits into
react:mainfrom
okwasniewski:feat/modal-detents

Conversation

@okwasniewski

@okwasniewski okwasniewski commented Oct 25, 2025

Copy link
Copy Markdown
Contributor

Summary:

This PR builds off the amazing work that @hurali97 did back in 2023. #34834

The previous PR didn't land because of significant delays when resizing the modal. Thanks to recent improvements we are now able to emit state updates synchronously thanks to EventQueue::UpdateMode::unstable_Immediate.

This PR builds off on that making the modal resizing buttery smooth.

modal.detents.mp4

Changelog:

[IOS] [ADDED] - implement modal detents prop

Test Plan:

  1. Open modal example
  2. Select use detents
  3. Play around with changing the values.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 25, 2025
@facebook-github-bot facebook-github-bot added p: Callstack Partner: Callstack Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Oct 25, 2025

@cipolleschi cipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this long wanted, awaited feature @okwasniewski!

@meta-codesync

meta-codesync Bot commented Oct 27, 2025

Copy link
Copy Markdown

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D85554807.

@react-native-bot

react-native-bot commented Oct 30, 2025

Copy link
Copy Markdown
Collaborator

Warnings
⚠️ ❗ JavaScript API change detected - This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API. Please include a clear changelog message. This change will be subject to extra review.

This change was flagged as: BREAKING

Generated by 🚫 dangerJS against f25ce97

@mrdnlabs-kevin

Copy link
Copy Markdown

commenting to follow along

@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label May 5, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

@react-native-bot react-native-bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Callstack Partner: Callstack Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants